package com.efast.dmom.mgmt.service.mes;

import java.util.List;
import java.util.Map;

import javax.print.PrintService;
import javax.servlet.http.HttpServletResponse;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.entity.mes.PrBasLoadingList;

public interface PrBasLoadingListService {

	/**
	 * 打印
	 * @return List
	 */
	ResultBean printLoadingList(PrBasLoadingList enti)throws Exception;
	/**
	 * 打印
	 * @return List
	 */
	ResultBean printCabList(PrBasLoadingList enti)throws Exception;
	/**
	 * 获取打印机
	 * @param printName 打印机名
	 * @return List
	 */
	PrintService getPrintService(String printName);
	
	/*
	 * void printLoadList(Map<String, Object> parameters, String
	 * filePath,HttpServletResponse response);
	 */
	
	
    String getService (String json);
    
    //根据vin号获取车型和颜色
    ResultBean getVehicleModelColor(String vin);
    
    ResultBean copyLoadList(Map<String, Object> map);
   
    /* 新增装车单值
     * id装车单头id
     * */
    ResultBean addLoadingList(List<PrBasLoadingList> list,Integer id);
    //新增装车单头信息
    ResultBean addLoadListHead(PrBasLoadingList enti);
	//获取装车单下拉选值
	List<PrBasLoadingList> getPartInfo(PrBasLoadingList enti);
	//删除装车单头信息
	void deleteLoadingListHead(PrBasLoadingList enti);
	//修改装车单子信息
	ResultBean updateLoadingList(PrBasLoadingList enti);
	//装车单预览
	void loadingListPreView(PrBasLoadingList enti,HttpServletResponse response);
}
